package com.example.demo.service;

import org.flowable.engine.RuntimeService;
import org.flowable.engine.TaskService;
import org.flowable.task.api.Task;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

@Service
public interface ProcessService {


    String startLeaveRequest(String employee, String reason, int days);

    List<Task> getUserTasks(String assignee);
    List<Task> getGroupTasks(String group);
    void completeTask(String taskId, Map<String, Object> variables);

    Task getTask(String taskId);
}